// 搜索
import http from "../common/http.js";

export default {
	// 门店申请
	applyMd: (data, needLoading) => {
		return http.POST("/md/submit", data, needLoading);
	},
	// 门店申请配置
	mdApplyConfig: (data, needLoading) => {
		return http.GET("/md/other-info", data, needLoading);
	},
	// 门店申请
	applyStatus: (data, needLoading) => {
		return http.GET("/md/audit-status", data, needLoading);
	},
	// 获取门店中心数据
	getMdCenterData: (data, needLoading) => {
		return http.GET("/md/md-center", data, needLoading);
	},
	// 获取门店用户列表
	getMdUserList: (data, needLoading) => {
		return http.GET("/md/user-list", data, needLoading);
	},
	// 员工中心
	getStaffCenter: (data, needLoading) => {
		return http.GET("/md/staff-center", data, needLoading);
	},
	// 添加员工
	addStaff: (data, needLoading) => {
		return http.POST("/md/staff-add", data, needLoading);
	},
	// 员工列表页
	getStaffList: (data, needLoading) => {
		return http.GET("/md/staff-list", data, needLoading);
	},
	
	// 取消订单操作
	orderCancellation: (data, needLoading) => {
		return http.POST("/md/apply-order-delete", data, needLoading);
	},
	// 售后操作
	salesOrders: (data, needLoading) => {
		return http.POST("/md/handle-refund", data, needLoading);
	},


	// 新增设置备注接口
	setRemarks: (data, needLoading) => {
		return http.POST("/md/set-order-words", data, needLoading);
	},
	// 新增保存数据
	mdPreserve: (data, needLoading) => {
		return http.POST("/md/handle-setting", data, needLoading);
	},
	// 新增推广二维码
	PromoteCodes: (data, needLoading) => {
		return http.GET("/md/get-share-qrcode", data, needLoading);
	},
	// 新增订单管理通知接口
	notices: (data, needLoading) => {
		return http.POSTJSON("/md/notice", data, needLoading);
	},
	// 新增删除订单接口
	deleteOrderArr: (data, needLoading) => {
		return http.POSTJSON("/md/recycle-order", data, needLoading);
	},
	// 新增商品管理列表获取
	ProductList: (data, needLoading) => {
		return http.GET("/md/get-goods", data, needLoading);
	},
	// 新增上下架商品管理
	upAndDownShelves: (data, needLoading) => {
		return http.GET("/md/update-status", data, needLoading);
	},
	//获取商品规格数据
	productSpecifications: (data, needLoading) => {
		return http.GET("/md/get-goods-attr", data, needLoading);
	},
	// 修改价格与库存接口
	changePriceNum: (data, needLoading) => {
		return http.POSTJSON("/md/set-goods-info", data, needLoading);
	},
	// 新增订单管理取消订单接口
	cancelOreder: (data, needLoading) => {
		return http.GET("/md/order-cancel", data, needLoading);
	},


	// 门店设置
	mdCenterSetting: (data, needLoading) => {
		return http.POST("/md/setting", data, needLoading);
	},
	// 会员列表
	staffMemberList: (data, needLoading) => {
		return http.GET("/md/select-list", data, needLoading);
	},
	// 员工核销列表
	staffClerkList: (data, needLoading) => {
		return http.GET("/md/staff-clerk-detail", data, needLoading);
	},
	// 自提订单列表
	selfMentionList: (data, needLoading) => {
		return http.GET("/md/offline-order", data, needLoading);
	},
	// 批量核销
	clerkSelfMentionOrder: (data, needLoading) => {
		return http.POST("/md/clerk-order", data, needLoading);
	},
	// 批量发货
	sendSelfMentionOrder: (data, needLoading) => {
		return http.POST("/md/send-order", data, needLoading);
	},
	// 订单详情
	getOrderDetail: (data, needLoading) => {
		return http.GET("/md/order-detail", data, needLoading);
	},
	// 门店中心订单列表
	getMdCenterOrderList: (data, needLoading) => {
		return http.GET("/md/order-list", data, needLoading);
	},
	// 佣金明细
	getCommissionList: (data, needLoading) => {
		return http.GET("/md/profit-detail", data, needLoading);
	},
	// 提现明细
	withdrawList: (data, needLoading) => {
		return http.GET("/md/cash-detail", data, needLoading);
	},
	// 提现配置
	withdrawConfig: (data, needLoading) => {
		return http.GET("/md/get-price", data, needLoading);
	},
	// 提现
	cashSubmitApply: (data, needLoading) => {
		return http.POST("/md/cash-apply", data, needLoading);
	},
	// 获取提现方式列表
	getWithdraw(data, needLoading) {
		return http.GET("/md/get-cash-method", data, needLoading);
	},
	// 删除提现方式
	delWithdraw(data, needLoading) {
		return http.POST("/md/del-cash-method", data, needLoading);
	},
	// 添加提现方式
	addWithdraw(data, needLoading) {
		return http.POST("/md/add-cash-method", data, needLoading);
	},
	// 会员码
	getMemberCode: (data, needLoading) => {
		return http.POST("/md/get-qrcode", data, needLoading);
	},
};